<#include "/common/seajs/layout/action_head_layout.html" />
<@action_head_layout>
<title>${jxrb.message(actionName,"systemReportInfo")} ${(systemReportInfo.report_name)!}</title>
<script language="javascript">
    seajs.use(['jquery','jx_msgbox_plus'],function($,msgbox){
  function submitReportInfo()
{
  msgbox.confirm({url:"${controllerKey}${action}/"},
  function()
  {
    msgbox.close() ;
    if (msgbox.messageType != 2)
      clearForm() ;
      
  },function()
  {
    if (msgbox.messageType != 2)
      returnInfo() ;
  });
}
  
  function returnInfo()
  {
    location.href = "${controllerKey}" + $("#select").val();
  }
function clearForm()
{
  var action = '${action}';
  if (action == 'added')
  {
    $("#reportCode").val("");
    $("#reportName").val("");
  }
}
window.submitReportInfo = submitReportInfo;
window.returnInfo = returnInfo;
    });
</script>
</@action_head_layout>
<#include "/common/layout/action_body_layout.html" />
<@action_body_layout>
<#include "info.html" />
<br/>
<center>
  <@jx_button onclick="submitReportInfo();" value="action.save" />
  <@jx_button onclick="returnInfo();" value="action.return" />
</center>
</@action_body_layout>
<script>
  seajs.use("jquery",function($){
 
var action = '${action}';
if (action == 'edited')
{
  $("#reportCode").attr("readonly","readonly");
  $("#reportCode").addClass("readonly_input");
}
  });
</script>
